<!DOCTYPE html>
    <script src="{{static('js/jquery.min.js')}}"></script>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>个人信息设置</title>
    <meta name="keywords" content="小说,小说网,玄幻小说,武侠小说,都市小说,历史小说,网络小说,言情小说,青春小说,原创网络文学">
    <meta name="description" content="小说阅读,精彩小说尽在起点中文网. 起点中文网提供玄幻小说,武侠小说,原创小说,网游小说,都市小说,言情小说,青春小说,历史小说,军事小说,网游小说,科幻小说,恐怖小说,首发小说,最新章节免费">
    <link rel="icon" type="image/x-icon" href="https://qidian.gtimg.com/qdp/img/favicon.c443c.ico">

<link rel="stylesheet" data-ignore="true" href="{{ static('css/user/index.6b94b.css')}}">

    <script src="{{ static('js/user/stats.js')}}" name="MTAH5" sid="500445303" cid="500446496"></script><script>document.domain ='qidian.com';</script>
    <script>var speedTimer = [], speedZero = new Date().getTime();</script>
</head>
<body class="setting" style="zoom: 1;">
            <div class="personal-header" data-l1="1">
                <div class="header-wrapper">
                    <div class="header-logo">
                        <a href="https://my.qidian.com/">个人中心</a>
                    </div>
                    <ul class="header-nav">
                        <li class="header-nav-li">
                            <a href="https://my.qidian.com/" class="header-nav-a active" accesskey="1" data-eid="qd_M01"><i class=""></i>我的首页</a>
                        </li>
                        <li class="header-nav-li" id="headerNav">
                            <a href="{{ url('user:my_book_list') }}" class="header-nav-a " accesskey="2" data-eid="qd_M02"><i class=""></i>我的书架</a>
                        </li>
                        <li class="header-nav-li">
                            <a href="#" class="header-nav-a " accesskey="3" data-eid="qd_M03"><i class=""></i>消息中心</a>
                        </li>
                        <li class="header-nav-li">
                            <a href="http://game.qidian.com/" class="header-nav-a" target="_blank" accesskey="4" data-eid="qd_M04"><i class=""></i>游戏</a>
                        </li>
                    </ul>
                    <a href="https://my.qidian.com/" id="headerLog" class="header-log" data-eid="qd_M06" data-target="headerDropList">

                        {{ username }}

                    </a>
                    <div class="header-goHome">
                        <a href="/" target="_blank" accesskey="5" data-eid="qd_M05">首页</a>
                    </div>
                </div>
                <ul id="headerDropList" class="header-drop" data-align="3-2" style="display: none;">
                    <li>
                        <a href="{{ url('user:user_info') }}" data-eid="qd_M08">个人设置</a>
                    </li>
                    <li>
                        <a href="{{ url('user:user_info') }}" data-eid="qd_M09">我的主页</a>
                    </li>
                    <li>
                        <a href="{{ url('user:logout') }}" id="elLoginOut" data-eid="qd_M11">退出</a>
                    </li>
                </ul>
            </div>


                    <div class="top-game-op" id="topGameOp">
                        <div class="game-wrap" data-l1="4">
                        </div>
                    </div>


        <div class="qdp-wrapper">
               <div class="personal-sideBar" data-l1="2">

                </div>
    <div class="qdp-content" data-l1="3">
        <h2 class="qdp-hometitle"><a href="/">首页</a>&nbsp;&gt;&nbsp;个人信息设置</h2>
        <div class="qdp-record setting-record" data-l2="9">
            <div id="tabView" class="ui-tab-tabs">
                <a href="{{ url('user:user_info') }}" data-rel="tabTarget1"  data-eid="qd_M134">基本设置</a>
                <a href="{{ url('user:user_head_set') }}" class="" data-rel="tabTarget2" data-eid="qd_M135">头像设置</a>
                <a href="{{ url('user:commit') }}" class="" data-rel="tabTarget3" data-eid="qd_M136">我的评论</a>
                <a href="{{ url('user:commit') }}" data-rel="tabTarget3" class="checked" data-eid="qd_M136">修改密码</a>
            </div>
            <div id="jsTabContents" class="ui-tab-contents">
                <div id="tabTarget1" class="ui-tab-content checked" data-l3="24">
                    <div class="qdp-form">
                        <form id="setBasicForm" action="#" method="" novalidate="novalidate">
                            <input type="hidden" name="_csrfToken" value="zN6hm8VxdIWIs1ODyddxB2O1Z71cDrAZLwHBv2s3" class="elCsrf">
                            <dl>
                                <dt>原密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</dt>&nbsp;&nbsp;&nbsp;
                             <input name="name" type="password" value="" style="width: 150px;margin-top: -10px; height: 25px; border-left: 1px solid #bf2c24;
border-right: 1px solid #bf2c24;border-top: 1px solid #bf2c24;border-bottom: 1px solid #bf2c24;outline:none" id="old_pwd">
                            </dl>
                            <dl><dt>新密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</dt>&nbsp;&nbsp;&nbsp;
                             <input name="name" value=""type="password" style="width: 150px;margin-top: -10px; height: 25px; border-left: 1px solid #bf2c24;
border-right: 1px solid #bf2c24;border-top: 1px solid #bf2c24;border-bottom: 1px solid #bf2c24;outline:none" id="new_pwd1">
                            </dl>

                            <dt>确认新密码</dt>&nbsp;&nbsp;&nbsp;
                             <input name="name" value=""type="password" style="width: 150px;margin-top: -10px; height: 25px; border-left: 1px solid #bf2c24;
border-right: 1px solid #bf2c24;border-top: 1px solid #bf2c24;border-bottom: 1px solid #bf2c24;outline:none" id="new_pwd2">
                            </dl>
                            <dl class="qdp-form-higher">
                                <dt></dt>
                                <dd>
                                    <div class="" onclick="send_user_info()">
                                        <input type="submit" id="dialogMsgSubmit" class="clip">
                                        <label class="ui-button" for="">保存</label>
                                    </div>
                                </dd>
                            </dl>
                        </form>
                    </div>
                </div>
                <div id="tabTarget2" class="ui-tab-content setting-avatar" data-l3="24">
                    <form method="post" enctype="multipart/form-data" action="https://my.qidian.com/ajax/headimage/uploadimg" target="iframeAvatar">
                        <input type="hidden" name="_csrfToken" value="zN6hm8VxdIWIs1ODyddxB2O1Z71cDrAZLwHBv2s3" class="elCsrf">
                        <input type="file" id="fileAvatar" name="image" class="clip" accept="image/png, image/jpeg, image/gif, image/jpg">
                    </form>
                    <iframe src="javascript:;" id="iframeAvatar" name="iframeAvatar" class="clip dn" src="./个人信息设置_个人中心_起点中文网_files/saved_resource.html"></iframe>
                    <form id="setAvatarForm" action="https://my.qidian.com/ajax/headimage/upload" method="post" novalidate="novalidate">
                        <input type="hidden" name="_csrfToken" value="zN6hm8VxdIWIs1ODyddxB2O1Z71cDrAZLwHBv2s3" class="elCsrf">
                        <input type="radio" id="avatarRadioUpload" class="avatar-radio-upload" name="avatarType" value="0" checked="" tabindex="-1">
                        <input type="radio" id="avatarRadioSystem" class="avatar-radio-system" name="avatarType" value="1" tabindex="-1">
                        <input type="hidden" id="elUploadUrl" name="url" value="">
                        <div id="avatarXChoose" class="avatar-x-choose">
                            <img class="avatar-show" src="./个人信息设置_个人中心_起点中文网_files/100" alt="{{ username }}的头像">


                           <!--   -->
                            <div class="avatar-text">
                                <p>本地上传: 选择本地图片编辑后上传 (上传头像将会在2个工作日内进行审核，通过后需重新登录显示新头像)。</p>
                                <p class="gray">支持jpg、gif、png格式图片，上传文件大小不超过5MB，图片尺寸需大于200*200。</p>
                            </div>
                            <!-- <div>
                               <label class="ui-button disabled" id="elLabelforup">本地上传</label>
                               <label class="ui-button disabled">选择系统头像</label>
                            </div> -->
                            <div>
                               <label class="ui-button" for="fileAvatar" id="elLabelforup" role="button" tabindex="-1" data-eid="qd_M141">本地上传</label>
                               <label for="avatarRadioSystem" class="ui-button" role="button" tabindex="0" data-eid="qd_M142">选择系统头像</label>
                            </div>
                            <!-- <p class="mt12 highlight">图片尺寸需大于200*200。</p> -->
                        </div>
                        <div id="avatarXCrop" class="avatar-x-crop pr dn">
                            <input type="hidden" id="iptCropLeft" name="left" value="0">
                            <input type="hidden" id="iptCropTop" name="top" value="0">
                            <input type="hidden" id="iptCropWidth" name="width" value="120">
                            <input type="hidden" id="iptCropHeight" name="height" value="120">
                            <div id="avatarCrop" class="avatar-crop"></div>
                            <div>
                                <label for="avatarSubmit" class="ui-button" id="elUserAvatar" data-eid="qd_M143">保存头像</label>
                                <a href="javascript:;" id="btnUploadCancel" class="ui-button ui-button-default">取消</a>
                            </div>
                        </div>
                        <div id="avatarXSystem" class="avatar-x-system dn">
                            <h3>选择系统头像</h3>
                            <div>
                                <label for="avatarSubmit" class="ui-button" role="button" data-eid="qd_M143">保存头像</label>
                                <label for="avatarRadioUpload" class="ui-button ui-button-default" role="button" tabindex="0">取消</label>
                            </div>
                        </div>
                        <input type="submit" id="avatarSubmit" class="clip">
                    </form>
                </div>
                <div id="tabTarget3" class="ui-tab-content setting-secret" data-l3="24">
                    <div class="qdp-form">
                        <form id="setAbleMsgForm" action="https://my.qidian.com/ajax/message/UpdateSetting" method="post" novalidate="novalidate">
                        <input type="hidden" name="_csrfToken" value="zN6hm8VxdIWIs1ODyddxB2O1Z71cDrAZLwHBv2s3" class="elCsrf">
                            <dl>
                                <dt>站内信</dt>
                                <dd>设置谁可以给我发站内信
                                    <div class="mt20" data-l3="24">
                                        <input type="radio" id="radioLetter1" name="privacy" value="0" data-eid="qd_M144">
                                        <label for="radioLetter1" class="ui-radio mr8"></label><label for="radioLetter1" data-eid="qd_M144">所有人 (不包括你的黑名单用户)</label>
                                    </div>
                                    <div class="mt20">
                                        <input type="radio" id="radioLetter2" name="privacy" value="1" data-eid="qd_M145">
                                        <label for="radioLetter2" class="ui-radio mr8"></label><label for="radioLetter2" data-eid="qd_M145">我关注的人</label>
                                    </div>
                                </dd>
                            </dl>
                            <dl>
                                <dt>个人主页</dt>
                                <dd>设置谁可以查看我的个人主页
                                    <div class="mt20" data-l3="24">
                                        <input type="radio" id="radioLetter3" name="pagePrivacy" value="0" data-eid="qd_M146">
                                        <label for="radioLetter3" class="ui-radio mr8"></label><label for="radioLetter3" data-eid="qd_M146">所有人</label>
                                    </div>
                                    <div class="mt20">
                                        <input type="radio" id="radioLetter4" name="pagePrivacy" value="1" data-eid="qd_M147">
                                        <label for="radioLetter4" class="ui-radio mr8"></label><label for="radioLetter4" data-eid="qd_M147">我关注的人</label>
                                    </div>
                                </dd>
                            </dl>
                            <dl class="qdp-form-higher">
                                <dt></dt>
                                <dd>
                                    <div>
                                        <input type="submit" id="msgSysSubmit" class="clip">
                                        <label class="ui-button" for="msgSysSubmit">保存</label>
                                    </div>
                                </dd>
                            </dl>
                        </form>
                    </div>
                </div>
                <div id="tabTarget4" class="ui-tab-content" style="visibility:hidden;" data-l3="24">
                    <div class="table-msg lh36">
                        已保存了<span class="highlight ml5 mr5 w_numstore">0</span>条地址，还能保存<span class="highlight ml5 mr5 w_numtostore">10</span>条地址
                        <a href="javascript:;" id="jsAddrAdd" class="ui-button fr" data-eid="qd_M148">新增地址</a>
                    </div>
                    <div id="tableTarget4" class="table-x">
                        <div class="table-size ui-loading-animation" style="height: 341px; transition: height 200ms ease 0s;">
                            <table class="ui-table">
                                <thead>
                                  <tr>
                                    <th scope="col" width="60">收货人</th>
                                    <th scope="col" width="150">所在地区</th>
                                    <th scope="col" width="175">详细地址</th>
                                    <th scope="col" width="150">手机/电话</th>
                                    <th scope="col" width="75">操作</th>
                                    <th scope="col"></th>
                                  </tr>
                                </thead>
                                <tbody>

    </tbody>
                            </table>
                            <div class="table-null-x dn" style="visibility: visible; line-height: 1.5; display: block;">
                                <div class="add-empty">
                                    <p class="add-empty-content">你还没有收货地址</p>
                                    <a href="javascript:;" id="jsAddrAddNull" class="ui-button" data-eid="qd_M148">新增地址</a>
                                </div>
                            </div>
                            <div class="ui-loading" style="visibility: visible; top: 0px; display: none;"><i class="ui-loading-icon"></i></div>
                         </div>
                         <!-- <div class="table-page-x">
                             <div class="table-page"></div>
                         </div> -->
                    </div>
                </div>
        </div>
    </div>
</div>


            <div class="go-top dn" style="display: none;">
                <div class="go-top-wrap">
                    <a href="https://my.qidian.com/setting?targetTab=tabTarget1#" class="icon-go-top bTips" title="返回顶部"><i class="iconfont icon-backtop"></i></a>
                </div>
            </div>
        </div>
            <div class="personal-footer">
                <div class="footer-sub">
                    <a href="https://www.yuewen.com/" target="_blank">阅文集团</a>旗下网站：
                    <a href="https://www.qidian.com/" target="_blank" class="mr8">起点中文网</a>
                    <a href="https://www.qdmm.com/" target="_blank" class="mr8">起点女生网</a>
                    <a href="http://chuangshi.qq.com/" target="_blank" class="mr8">创世中文网</a>
                    <a href="http://yunqi.qq.com/" target="_blank" class="mr8">云起书院</a>
                    <a href="https://www.hongxiu.com/" target="_blank" class="mr8">红袖添香</a>
                    <a href="https://www.readnovel.com/" target="_blank" class="mr8">小说阅读网</a>
                    <a href="https://www.xs8.cn/" target="_blank" class="mr8">言情小说吧</a>
                    <a href="https://www.xxsy.net/" target="_blank" class="mr8">潇湘书院</a>
                    <a href="http://www.tingbook.com/" target="_blank" class="mr8">天方听书网</a>
                    <a href="http://www.lrts.me/" target="_blank" class="mr8">懒人听书</a>
                    <a href="http://yuedu.yuewen.com/" target="_blank" class="mr8">阅文悦读</a>
                    <a href="https://www.yuewen.com/app.html" target="_blank" class="mr8">QQ阅读</a>
                    <a href="https://www.yuewen.com/app.html#appqd" target="_blank" class="mr8">起点读书</a>
                    <a href="https://www.yuewen.com/app.html#appzj" target="_blank" class="mr8">作家助手</a>
                    <a href="https://www.webnovel.com/" target="_blank" class="mr8">起点国际版</a>
                </div>
                <div class="footer-menu">
                    <a href="https://www.qidian.com/about/intro" target="_blank">关于起点</a>
                    <a href="https://www.qidian.com/about/contact" target="_blank">联系我们</a>
                    <a href="https://join.book.qq.com/index.html" target="_blank">加入我们</a>
                    <a href="https://www.qidian.com/help/index/2" target="_blank">帮助中心</a>
                    <a href="http://123.206.70.240/online/?cid=0&amp;uid=10&amp;code=sOEt7yHh8+2e+J52ENHbLQ==" class="commitAdvice" target="_blank">提交建议</a>
                    <!-- <a href="//wwwploy.qidian.com/help/about_link.aspx" target="_blank">合作伙伴</a> -->
                    <!-- <a href="//bbs.qidian.com" target="_blank">起点论坛</a> -->
                    <!-- <a href="//webgame.qidian.com/jiazhang.html" target="_blank">家长监护工程</a> -->
                </div>
                <div class="footer-copyright">
                    <p>Copyright © 2002-2019 www.qidian.com All Rights Reserved版权所有 上海玄霆娱乐信息科技有限公司</p>
                    <p>网站备案/许可证号：<a target="_blank" href="http://beian.miit.gov.cn/publish/query/indexFirst.action">沪B2-20080046-1</a>  出版经营许可证：新出发沪批字第U3718号  网络文化经营许可证：沪网文[2015]0081-031 新出网证（沪）字010 </p>
                    <p>请所有作者发布作品时务必遵守国家互联网信息管理办法规定，我们拒绝任何色情小说，一经发现，即作删除！</p>
                    <p>本站所收录作品、社区话题、书库评论及本站所做之广告均属其个人行为，与本站立场无关</p>
                </div>
            </div>

        <script>
            function send_user_info() {
                var old_pwd = document.getElementById("old_pwd").value;
                var new_pwd1 = document.getElementById("new_pwd1").value;
                var new_pwd2 = document.getElementById("new_pwd2").value;
                if(!old_pwd){
                    alert("请输入原密码")
                    return;
                }
                if(!new_pwd1){
                    alert("请输入新密码")
                    return;
                }
                if(!old_pwd){
                    alert("请确认新密码")
                    return;
                }
                if(new_pwd1 !== new_pwd2){
                    alert("两次密码不一致")
                    return;
                }
                if (new_pwd2.length < 6){
                    alert("密码长度不能小于6位")
                    return;
                }
                if (new_pwd2.length > 16){
                    alert("密码不能大于16位")
                    return;
                }
                var params = {
                    "old_pwd":old_pwd,
                    "new_pwd1": new_pwd1,
                    "new_pwd2": new_pwd2
                };
            $.ajax({
            url:"{{ url('user:chang_pwd') }}",
            type: "post",
            data: JSON.stringify(params),
                headers:{ "X-CSRFtoken":"{{ csrf_token }}"},
            contentType: "application/json",
                success: function (resp) {
                if (resp.code == "0"){
                    // 刷新当前界面
                    alert(resp.errmsg);
                    location.href="{{ url('user:reg') }}"
                }else if(resp.code){
                    alert(resp.errmsg);
                }
            }
        })

            }
        </script>



<script>
  (function(){
      //获取到按钮和对应显示隐藏的标签
      var btn = document.getElementById('headerLog');
      var box = document.getElementById('headerDropList');
      //初始化时间
      var timer = null;
      //鼠标移入按钮时候显示标签
      box.onmouseover = btn.onmouseover = function(){
        if(timer) clearTimeout(timer);
          box.style.marginLeft = "70%"
          box.style.display = 'block';

      }
      //移出后半秒标签内容自动消失
      box.onmouseout = btn.onmouseout = function(){
          timer = setTimeout(function(){
            box.style.display = 'none';
          },500);
      }
  })();
</script>

</body></html>